<script setup lang="ts">
const props: any = defineProps<{
    ujt: any;
    asaidata: any;
    formdata: any;
}>();
</script>

<template>
    <template v-for="(item, key) of props.formdata">
        <component
            v-if="asaidata?.cmComp && asaidata?.cmComp(key)"
            :is="asaidata.cmComp(key)"
            :ujt="ujt"
            :asaidata="asaidata"
            :formdata="formdata"
            :formkey="key"
        ></component>
        <template v-else-if="typeof item === 'object'">
            <component
                v-if="asaidata?.cmComp && asaidata?.cmComp('object')"
                :is="asaidata.cmComp('object')"
                :ujt="ujt"
                :asaidata="asaidata"
                :formdata="formdata"
                :formkey="key"
            ></component>
            <AsaiFormObject
                v-else
                :ujt="ujt"
                :asaidata="asaidata"
                :formdata="formdata"
                :formkey="key"
            >
            </AsaiFormObject>
        </template>
        <AsaiInput
            v-else
            :ujt="ujt"
            :asaidata="asaidata"
            :formdata="formdata"
            :formkey="key"
        ></AsaiInput>
    </template>
</template>

<style lang="scss"></style>
